package com.java.exceptionLearn;

/**
 * @author Lenl
 * @create 2021-06-01 19:30
 *
 * 如何自定义异常类
 *  1.继承现有异常类：RuntimeException\Exception
 *  2.提供全局常量：serialVersionUID
 *  3.提供重载的构造器
 *
 */
public class DIYException extends RuntimeException {
    static final long serialVersionUID=-7034897190745766939L;

    public DIYException(){

    }
    public DIYException(String msg){
        super(msg);
    }
}
